package com.cmdi.mq;

import com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * @Description: CmdiAdminApplication
 * @Author: gaozb
 * 排除DruidDataSourceAutoConfigure：DruidDataSourceAutoConfigure会注入一个DataSourceWrapper，其会在原生的spring.datasource下找url,username,password等。
 * 而动态数据源的配置路径是变化的
 */
@SpringBootApplication(exclude = {DruidDataSourceAutoConfigure.class})
@EnableDiscoveryClient
@EnableFeignClients
@MapperScan(basePackages = "com.cmdi.mapper")
public class CmdiAdminApplication {
    public static void main(String[] args) {
        SpringApplication.run(CmdiAdminApplication.class, args);
    }
}